﻿<DemoPageSectionComponent Id="Editors-Memo-ResizeMode"
                          ShowSizeMode="true">
    <ChildContentWithParameters Context="Params">
        <label for="memoResizeMode" class="demo-text cw-480 mb-1">
            Description
        </label>
        <DxMemo @bind-Text="TextValue"
                SizeMode="Params.SizeMode"
                ResizeMode="MemoResizeMode"
                CssClass="cw-480"
                Rows="5"
                InputId="memoResizeMode" />
    </ChildContentWithParameters>

    <OptionsContent>
        <OptionComboBox Label="Resize Mode:"
                        Data="@(Enum.GetNames(typeof(MemoResizeMode)))"
                        Value="@(MemoResizeMode.ToString())"
                        ValueChanged="@((string selectedItem) =>
                                        { MemoResizeMode = Enum.Parse<MemoResizeMode>(selectedItem); })" />
    </OptionsContent>

    @code {
        MemoResizeMode MemoResizeMode { get; set; } = MemoResizeMode.VerticalAndHorizontal;

        string TextValue { get; set; } =
            "Prepare 2020 Marketing Plan: We need to double revenues in 2020 "+
            "and our marketing strategy is going to be key here. " +
            "R&D is improving existing products and creating new products so we can "+
            "deliver great AV equipment to our customers. " +
            "Robert, please make certain to create a PowerPoint presentation "+"" +
            "for the members of the executive team.";
    }
</DemoPageSectionComponent>
